package com.yc.springcloud.controller;

import com.yc.springcloud.entity.Member;
import com.yc.springcloud.service.MemberFeignService;
import com.yc.springcloud.utils.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author DELL
 * @Date 2024/10/8 21:16
 * @Version 1.0
 */
@RestController
public class MemberConsumerFeignController {

	@Resource
	private MemberFeignService memberFeignService;

	@GetMapping(value = "/{id}")
	public Result queryMemberById(@PathVariable("id") Long id){
		return memberFeignService.queryMemberById(id);
	}

}
